
import Layout from '@/views/layout/Layout'

// 系统
const system = {
  path: '/system',
  component: Layout,
  alwaysShow: true,
  name: 'system',
  meta: {
    title: 'system',
    icon: 'system'
  },
  children: [
    // 数据字典
    {
      path: 'dictionary',
      name: 'dictionary',
      component: () => import('@/views/system/dictionary/index'),
      meta: {
        title: 'dictionary',
        icon: ''
      }
    },
    // 角色管理
    {
      path: 'role',
      name: 'role',
      component: () => import('@/views/system/role/index'),
      meta: {
        title: 'role',
        icon: ''
      }
    },
    // 菜单管理
    {
      path: 'menu',
      name: 'menu',
      component: () => import('@/views/system/menu/index'),
      meta: {
        title: 'menu',
        icon: ''
      }
    },
    // 系统配置
    {
      path: 'systemConfig',
      name: 'systemConfig',
      component: () => import('@/views/system/systemConfig/index'),
      meta: {
        title: 'systemConfig',
        icon: '',
        isAdmin: true,
        roles: ['admin:systemConfig:view']
      }
    },
    // 业务日志
    {
      path: 'businessLog',
      component: () => import('@/views/system/businessLog/index'),
      name: 'businessLog',
      meta:
        {
          title: 'businessLog',
          icon: '',
          noCache: true
        }
    },
    // 系统日志
    {
      path: 'systemLog',
      component: () => import('@/views/system/systemLog/index'),
      name: 'systemLog',
      meta: {
        title: 'systemLog',
        icon: '',
        noCache: true,
        isAdmin: true
      }
    },
    {
      path: 'region',
      component: () => import('@/views/system/region'),
      name: 'region',
      meta:
        { title: 'region',
          icon: ''
        }
    }
  ]
}

export default system
